<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:pe="http://primefaces.org/ui/extensions"
	xmlns:ui="http://java.sun.com/jsf/facelets">


<h:panelGrid id="display" columns="3" cellpadding="4"
	styleClass="grdForm"> 


	<p:outputLabel for="model"  value="Model:"  rendered="#{tableBean.update}" />
	<p:inputText value="#{tableBean.selectedCar.model}" id="model" required="true" disabled="true" rendered="#{tableBean.update}"
	requiredMessage="Este valor es obligatorio" />
	<p:message for="model" display="text"  rendered="#{tableBean.update}" />  

	<p:outputLabel for="year" value="Year:" />
	<p:inputText value="#{tableBean.selectedCar.year}" id="year" required="true" requiredMessage="Este valor es obligatorio"/>
	<p:message for="year" display="text" />  

	<p:outputLabel for="manufacturer" value="Manufacturer:" />
	<p:inputText value="#{tableBean.selectedCar.manufacturer}" 
		id="manufacturer" required="true" requiredMessage="Este valor es obligatorio"/>
	<p:message for="manufacturer" display="text" />  

	<p:outputLabel for="color" value="Color:" />
	<p:inputText value="#{tableBean.selectedCar.color}" id="color" required="true" requiredMessage="Este valor es obligatorio"/>
	<p:message for="color" display="text" />  
</h:panelGrid>

</html>